package com.leather.express.feignclient;

import com.leather.common.entity.User;
import com.leather.express.config.FeignConfig;
import com.leather.express.feignclient.impl.UserClientHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "campus-user", configuration = FeignConfig.class, fallback = UserClientHystrix.class)
public interface UserClient {

    @PostMapping("/get/{id}")
    User getUserById(@PathVariable("id") Integer id);
}
